package gamedsl.game;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Input;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

//public class AlienGame extends StateBasedGame{
public class AlienGame extends StateBasedGame{	
	private GameContainer container;
	//private boolean vsync = true;
	private boolean vsync = true;
	
	//public AlienGame(){
	public AlienGame(){
		super("Alien Game");
	}
	
	public void initStatesList(GameContainer container) throws SlickException {
		this.container = container;
		//container.setTargetFrameRate(100);
		container.setTargetFrameRate(100);
		//container.setVSync(vsync);
		container.setVSync(true);
		
		//addState(new PlayingGameState());
		 addState(new PlayingGameState());
	}
	
	
	public static void main(String[] argv) throws SlickException{
		AppGameContainer container = new AppGameContainer(new AlienGame(), 800, 600, false);
		container.start();
	}
}
